package cn.xiyue.production.utils;

import java.text.DecimalFormat;

public class DataFormat {
    private static DecimalFormat decimalFormat;

    public static String getPrice(int p){
        if (decimalFormat==null)decimalFormat = new DecimalFormat("#,###");
        return decimalFormat.format(p);
    }

    public static String getType(int type){
        switch (type){
            case 0:
                return "工程师";
            case 1:
                return "工人";
            case 2:
                return "技术人员";
            case 3:
                return "质检员";
        }
        return "未知";
    }
}
